﻿// *****************************************************************************************************
//   Copyright (c) 2020, HP Development Company, L.P. All rights reserved.
//   This software contains confidential and proprietary information of HP.
//   The user of this software agrees not to disclose, disseminate or copy
//   such Confidential Information and shall use the software only in accordance
//   with the terms of the license agreement the user entered into with HP. 
// *****************************************************************************************************

using LedControl.HidControl;

namespace LedControl
{
    public static class LedControl
    {
        /// <summary>
        /// Set LED State
        /// </summary>
        /// <param name="state">LedState</param>
        /// <returns>Success or not</returns>
        public static bool SetLedState(LedState state)
        {
            if (IteHelper.IsExist())
            {
                return IteHelper.SetLed((byte)state);
            }
            return false;
        }
    }
}
